package Modelo;

import static org.junit.Assert.*;
import java.util.Date;
import org.junit.Test;
import Modelo.GestorTitular;

public class GestorTitularTest {

	@Test
	public void testFormularioCompletoTrue() {
		GestorTitular gestor = new GestorTitular();
		assertTrue(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "1234", "", "", "A+", "C"));
		assertTrue(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "1234", "2A", "2", "A+", "C"));
		assertTrue(gestor.esFormularioCompleto("unApellido123", "unNombre3", new Date(), "calle", "1234", "2A", "2", "A+","C"));
	}
	
	@Test
	public void testFormularioCompletoFalse() {
		GestorTitular gestor = new GestorTitular();
		assertFalse(gestor.esFormularioCompleto("", "", null, "", "", "", "", null, null));
		assertFalse(gestor.esFormularioCompleto("", "unNombre", new Date(), "calle", "1234", "2A", "2", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "", new Date(), "calle", "1234", "2A", "2", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", null, "calle", "1234", "2A", "2", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "", "1234", "2A", "2", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "", "2A", "2", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "1234", "", "2", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "1234", "2A", "", "A+", "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "1234", "2A", "2", null, "C"));
		assertFalse(gestor.esFormularioCompleto("unApellido", "unNombre", new Date(), "calle", "1234", "2A", "2", "0+", null));
		

		
		
	}

}
